import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import {HttpClientModule} from '@angular/common/http';
import { QRScanner } from '@ionic-native/qr-scanner';


import { MyApp } from './app.component';
import { NativeProvider } from '../providers/native/native';
import { HttpProvider } from '../providers/http/http';
import { Toast } from '@ionic-native/toast';
import { Network } from '@ionic-native/network';
import { FingerprintAIO } from '@ionic-native/fingerprint-aio';
import { BusiProvider } from '../providers/busi/busi';
import { AppVersion } from '@ionic-native/app-version';
import { File } from '@ionic-native/file';
import { FileOpener } from '@ionic-native/file-opener';
import { FileTransfer } from '@ionic-native/file-transfer';
import { Diagnostic } from '@ionic-native/diagnostic';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { Vibration } from '@ionic-native/vibration';
import { Camera} from '@ionic-native/camera';



@NgModule({
  declarations: [
    MyApp,
  ],
  imports: [
    HttpClientModule,
    BrowserModule,
    IonicModule.forRoot(MyApp,{
      mode: 'ios',
      tabsHideOnSubPages: 'true',
      backButtonText: ''
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    NativeProvider,QRScanner,
    HttpProvider,Toast,Network,FingerprintAIO,AppVersion,
    File,FileTransfer,FileOpener,
    BusiProvider,Diagnostic,InAppBrowser,Vibration,Camera,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
